package promote.brozen.base.io.bio;

import java.io.*;

/**
 * @author Brozen
 * @date 2020/10/9 8:40 AM
 * @email brozen@qq.com
 */
public class FileRead {

    public static void main(String[] args) throws IOException {

        try (
            FileReader fr = new FileReader(new File("/data/logs/error.log"));
            BufferedReader br = new BufferedReader(fr)
        ) {
            char[] buffer = new char[1];
            br.read(buffer);
            System.out.println(buffer[0]);

            System.out.println(br.readLine());
        }

    }

}
